import pytest
import os, sys
sys.path.append(os.getcwd())
from lib.web import *
from time import sleep

@pytest.fixture(scope='package', autouse=True)
def st_emptyEnv():
    print(f'\n#### 初始化-目录甲')
    p.wd.implicitly_wait(10)
    p.wd.find_element(By.XPATH,'/html/body/div/div/div[1]/form/div[1]/div/div/input').send_keys('*****')
    p.wd.find_element(By.XPATH,'/html/body/div/div/div[1]/form/div[2]/div/div/input').send_keys('**********')
    sleep(10)
    p.wd.find_element(By.XPATH,'/html/body/div/div/div[1]/form/div[5]/button/span').click()

    yield
    # p.wd.quit()
    print(f'\n#### 清除-目录甲')